package cn.tannn.surenessdemo.controller;

import cn.jdevelops.annotation.mapping.PathRestController;
import cn.jdevelops.result.result.ResultVO;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import com.github.xiaoymin.knife4j.annotations.ApiSupport;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author tnnn
 * @version V1.0
 * @date 2022-07-17 00:55
 */
@Api(tags = "资源角色的接口", value = "权限测试")
@PathRestController("res")
@ApiSupport(order = 7)
public class TestRoleResController {


    @ApiOperation(value = "资源一", notes = "权限测试")
    @GetMapping("res1")
    @ApiOperationSupport(order = 1)
    public ResultVO<String> res1(){
        return ResultVO.success("资源一");
    }

    @ApiOperation(value = "资源二", notes = "权限测试")
    @GetMapping("res2")
    @ApiOperationSupport(order = 2)
    public ResultVO<String> res2(){
        return ResultVO.success("资源二");
    }

    @ApiOperation(value = "资源三", notes = "权限测试")
    @GetMapping("res3")
    @ApiOperationSupport(order = 3)
    public ResultVO<String> res3(){
        return ResultVO.success("资源三");
    }


    @ApiOperation(value = "资源四", notes = "权限测试")
    @PostMapping("res4")
    @ApiOperationSupport(order = 4)
    public ResultVO<String> res4(){
        return ResultVO.success("资源四");
    }

}
